package com.example.pay_service.service.impl;

import com.example.pay_service.Dao.ShoppingDao;
import com.example.pay_service.service.ShoppingService;
import com.example.pay_service.vo.Shopping;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @title: ShoppingServiceimpl
 * @projectName mall
 * @description: TODO
 * @author TLJ
 * @date 2021/12/1615:45
 */
@Service
public class ShoppingServiceimpl implements ShoppingService {
    @Autowired
    ShoppingDao dao;

    @Override
    public int addshopping(Shopping shopping) {
        return dao.addshopping(shopping);
    }

    @Override
    public List<Shopping> showshopping(int user_id) {
        return dao.showshopping(user_id);
    }

    @Override
    public int delshopping(int cart_id) {
        return dao.delshopping(cart_id);
    }

    @Override
    public Shopping query_cart(int cart_id) {
        return dao.query_cart(cart_id);
    }

}
